From: Ryan Twitchell Date: Fri, 17 Dec 2010 10:56:03 +0000 (+0800) Subject: Ask for confirmation in ido-file-internal (Bug#1238). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5362 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=92d5b5a31bd7e15bcb878172012172e27a526471;p=emacs.git Ask for confirmation in ido-file-internal (Bug#1238). * ido.el (ido-file-internal): Ask for confirmation before overwriting an existing file (Bug#1238). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 21fe9be54d1..5a0f33e9a7f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-17 Ryan Twitchell (tiny change) + + * ido.el (ido-file-internal): Ask for confirmation before + overwriting an existing file (Bug#1238). + 2010-12-16 Chong Yidong * tool-bar.el (tool-bar-setup): Add separators. diff --git a/lisp/ido.el b/lisp/ido.el index 306485de1ad..84ae93142b4 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2430,7 +2430,7 @@ If cursor is not at the end of the user input, move to end of input." (ido-record-command 'write-file filename) (add-to-history 'file-name-history filename) (ido-record-work-directory) - (write-file filename)) + (write-file filename t)) ((eq method 'read-only) (ido-record-work-file filename)